home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / comm / cpt152.zip / CPT-SORT.DOC < prev    next >
Text File  |  1996-05-16  |  2KB  |  41 lines

  1.  
  2.                      Documentation for CPT-Sort, v1.52
  3.             See CPT.DOC for usage information about CPT itself.
  4.  
  5.  
  6. CPT-Sort sorts a CPT database by one or more of four different fields, each
  7. of which may be in either ascending or descending order.
  8.  
  9. Prefacing a sort field with a hyphen (-) selects descending order.
  10.  
  11. Usage: CPT-Sort <CPT file> <sort order>
  12.  
  13. The "sort order" may be any one or more of the following:
  14.  
  15.     name     = sort by first name, ascending (A to Z)
  16.    -name     = sort by first name, descending (Z to A)
  17.     sent     = sort by messages sent, ascending (fewest messages at top)
  18.    -sent     = sort by messages sent, descending (most messages at top)
  19.     oldest   = sort by oldest message, ascending (new people at end)
  20.    -oldest   = sort by oldest message, descending (new people at top)
  21.     newest   = sort by newest message, ascending (current posters at end)
  22.    -newest   = sort by newest message, descending (current posters at top)
  23.  
  24. Example:  CPT-Sort cnf_123.dat -sent
  25. Example:  CPT-Sort 45.mem -sent name
  26.  
  27.  
  28. Notes:
  29.  
  30.   1) The output file name for CPT-Sort is the same as the input file.
  31.  
  32.   2) CPT never sorts the database.  That is why I wrote *this* program!
  33.  
  34.   3) If you want to rank by multiple fields, just put multiple sort order
  35.      parameters on the command line, in the order of highest to lowest
  36.      priority.  If you want the participants sorted primarily by oldest and
  37.      secondarily by name, then use:
  38.  
  39.           CPT-Sort 123.mem oldest name
  40.  
  41.